package cn.mdx.service;

import cn.mdx.mapper.CollegeMapper;
import cn.mdx.pojo.College;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * @author 谢模全
 */
@Service
public class CollegeService {

    private static final Logger logger = LoggerFactory.getLogger(CollegeService.class);

    @Autowired
    private CollegeMapper collegeMapper;

    /**
     *
     * @return 所有部门/学院
     */
    public ArrayList<College> getColleges() {
        logger.info("[查询所有部门/学院]");
        return collegeMapper.getColleges();
    }
}
